From a7971c39a9656d56959ec88b4008f6d66230cfe4 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 6 Jun 1993 17:43:12 +0000 Subject: [PATCH] (Fcurrent_time_zone): Add alternative for !HAVE_TM_ZONE. --- src/editfns.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/editfns.c b/src/editfns.c index 69a045b8341..e8b2a08c79f 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -656,7 +656,12 @@ the data it can't find.") #ifdef HAVE_TM_ZONE if (t->tm_zone) s = t->tm_zone; +#else /* not HAVE_TM_ZONE */ +#ifdef HAVE_TZNAME + if (t->tm_isdst == 0 || t->tm_isdst == 1) + s = tzname[t->tm_isdst]; #endif +#endif /* not HAVE_TM_ZONE */ if (!s) { /* No local time zone name is available; use "+-NNNN" instead. */ -- 2.30.2